Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Workflows #269

Merged
merged 29 commits into from
Aug 30, 2024
Merged

Register Workflows #269

merged 29 commits into from
Aug 30, 2024

Conversation

mtweiden
Copy link
Contributor

@mtweiden mtweiden commented Aug 14, 2024

Given a MachineModel or GateSet, a custom Workflow can be registered to overwrite the default Workflow for a given optimization_level in bqskit.compile.

  • Added workflow_registry object to maintain registered Workflows
  • Added register_workflow function so that custom Workflows can be associated with a MachineModel or GateSet and optimization_level
  • Modified bqskit.compile to check for registered Workflows

TODO:

  • Add tests

@mtweiden mtweiden requested review from alonkukl and edyounis August 14, 2024 06:13
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/registry.py Outdated Show resolved Hide resolved
bqskit/compiler/gateset.py Outdated Show resolved Hide resolved
bqskit/compiler/compile.py Outdated Show resolved Hide resolved
@mtweiden mtweiden merged commit 45293ae into main Aug 30, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants